.class Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "OnlineMusicFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "c"
.end annotation


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:I

.field final synthetic c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;Landroid/view/View;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    .line 2
    invoke-direct {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 3
    sget p1, Les/x4;->music_category_name:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->a:Landroid/widget/TextView;

    return-void
.end method


# virtual methods
.method public a(II)V
    .locals 2

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-ne p1, p2, :cond_0

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p2}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Ljava/util/List;

    move-result-object p2

    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->b()Ljava/lang/String;

    move-result-object p1

    sput-object p1, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->k:Ljava/lang/String;

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->a:Landroid/widget/TextView;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setSelected(Z)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->a:Landroid/widget/TextView;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setSelected(Z)V

    .line 7
    :goto_0
    iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->b(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;

    move-result-object p1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$b;->d(I)V

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    move-result-object p1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d(I)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->c(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Ljava/util/List;

    move-result-object p1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object p1

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;Ljava/lang/String;)Ljava/lang/String;

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->i()V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->c:Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;)Ljava/util/List;

    move-result-object p1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->b()Ljava/lang/String;

    move-result-object p1

    .line 8
    sput-object p1, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->k:Ljava/lang/String;

    .line 9
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$c;->b:I

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "_"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->k:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    return-void
.end method
